package com.express.service;

import com.express.common.result.Kauidi100OrderResultVO;
import com.express.common.result.Kauidi100QueryResultDataVo;
import com.express.common.result.Kauidi100QueryResultVo;
import com.express.common.result.Result;
import com.express.dto.Label100OrderDto;
import com.express.dto.Query100ByPhoneOrderDto;
import com.express.dto.Query100OrderDto;
import com.express.dto.UpdateOrderDto;
import com.express.entity.UserOrders;
import com.express.vo.OrderReceiptVo;

import java.util.List;
import java.util.Map;

public interface IOrderService {

   int save(UserOrders orders) throws Exception;

   Map getTotal(Map map) throws Exception;

   List<UserOrders> getList(Map map) throws Exception;

    UserOrders getOrder(Integer id);

    UserOrders getOrderByOrderNo(String orderNo);
    UserOrders getOrderByAppointNo(String appointNo);

    int update(UserOrders order);

    void loadNewOrder(String count);

    List<UserOrders> getOrderByIds(int[] ids);

    String getNewOrder();

    Result<Kauidi100OrderResultVO> doOrder(UserOrders orders);

    Result<List<Kauidi100QueryResultDataVo>> queryOrder(Integer orderId, String kuaidinum);

    Kauidi100QueryResultVo queryOrder(Query100OrderDto orderDto);

    Kauidi100OrderResultVO labelOrder(Label100OrderDto orderDto);

    Kauidi100QueryResultVo queryOrderByPhone(Query100ByPhoneOrderDto orderDto);

    OrderReceiptVo qeryOrderReceipt(String orderId);

    boolean updateByAppointNo(UpdateOrderDto orderDto);
}
